import { request } from "@/utils/http";


export const getPreOrderAPI = () => {
  return request({ url: '/member/order/pre' })
};

export const createOrderAPI = (data) => {
  return request({ url: '/member/order', method: 'POST', data })
};


export const getDetailAPI = (id) => {
  return request({ url: `/member/order/${id}` })
};


// 1.
export const getPayParamsAPI = (orderId) => {
  return request({
    url: '/pay/wxPay/miniPay', data: {
      orderId
    }
  })
};
